package com.example.learn.juc;

public class Teacher {
    /**
     * 教师名称
     */
    public volatile String name;

    /**
     * 学生投票数
     */
    public volatile int ticketNum;

    public Teacher(String name, int ticketNum) {
        this.name = name;
        this.ticketNum = ticketNum;
    }

    public String getName() {
        return name;
    }

    public int getTicketNum() {
        return ticketNum;
    }
}